apiVersion: apps/v1
kind: Deployment
metadata:
  name: jinzhou-backup
  namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      app: jinzhou-backup
  template:
    metadata:
      labels:
        app: jinzhou-backup
    spec:
      containers:
      - name: jinzhou-backup
        image: 172.16.21.80:80/library/jinzhou-backup:REPLACE_TAG
        ports:
        - containerPort: 8989
      imagePullSecrets:
      - name: harbor-secret-1
---
apiVersion: v1
kind: Service
metadata:
  name: jinzhou-backup
  namespace: default
spec:
  selector:
    app: jinzhou-backup
  ports:
  - protocol: TCP
    port: 8989
    targetPort: 8989
  type: NodePort